﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{
    public class ValveMap : ClassMap<Valve>
    {

        public ValveMap()
        {
            Table("TZ_FM");
            Id(x => x.VALVEID).GeneratedBy.Assigned().Column("VALVE_ID");
            Map(x => x.LOCATION).Column("LOCATION");
            Map(x => x.ROADNAME).Column("ROADNAME");
            Map(x => x.DIAMETER).Column("DIAMETER");
            Map(x => x.DN).Column("DN");
            Map(x => x.CONFIG).Column("CONFIG");
            Map(x => x.TYPE).Column("TYPE");
            Map(x => x.TURND).Column("TURN_D");
            Map(x => x.MATERIAL).Column("MATERIAL");
            Map(x => x.TURNNUM).Column("TURN_NUM");
            Map(x => x.DEPTH).Column("DEPTH");
            Map(x => x.DATEI).Column("DATE_I");
            Map(x => x.FUNCTION).Column("[FUNCTION]");
            Map(x => x.STATUS).Column("STATUS");
            Map(x => x.MODEL).Column("MODEL");
            Map(x => x.BOXTYPE).Column("BOX_TYPE");
            Map(x => x.FACTURER).Column("FACTURER");
            Map(x => x.PRESSURE).Column("PRESSURE");
            Map(x => x.ELEV).Column("ELEV");
            Map(x => x.FDN).Column("FDN");
            Map(x => x.FTYPE).Column("FTYPE");
            Map(x => x.SVALVEFLAG).Column("S_VALVE_FLAG");
            Map(x => x.GEOGRAPHY).Column("GEOGRAPHY");
            Map(x => x.COMPNAME).Column("COMP_NAME");
            Map(x => x.FMK).Column("FMK");
            Map(x => x.XFK).Column("XFK");
            Map(x => x.AREA).Column("AREA");
            Map(x => x.FDSD).Column("FDSD");
            Map(x => x.FDSIZE).Column("FDSIZE");
            Map(x => x.SOURCE).Column("SOURCE");
            Map(x => x.Y).Column("Y");
            Map(x => x.X).Column("X");
            Map(x => x.WELL).Column("WELL");
            Map(x => x.BOXSIZE).Column("BOX_SIZE");
            Map(x => x.ZKRQ).Column("ZKRQ");
            Map(x => x.PROJECT).Column("PROJECT");
            Map(x => x.ZKR).Column("ZKR");
            Map(x => x.GBCX).Column("GBCX");
            Map(x => x.GBSJ).Column("GBSJ");
            Map(x => x.BXSJ).Column("BXSJ");
            Map(x => x.GJZ).Column("GJZ");
            Map(x => x.SBLB).Column("SBLB");
            Map(x => x.SSQX).Column("SSQX");
            Map(x => x.SSZS).Column("SSZS");
            Map(x => x.TFH).Column("TFH");
            Map(x => x.MEMO).Column("MEMO");
            Map(x => x.PICTURE).Column("PICTURE");
            Map(x => x.EpcNO).Column("EpcNO");
        }

    }
}
